﻿using Inovout.Models;
using System.Collections.Generic;

namespace Inovout.People.Models
{
    public partial class Person : DataObject
    {
        private string name;
        public virtual string Name
        {
            get { return this.name; }
            set
            {
                this.name = value;
                QuanPinName = ConvertToQuanPin(Name);
                JianPinName = ConvertToJianPin(Name);
            }
        }
        public virtual string QuanPinName { get; set; }
        public virtual string JianPinName { get; set; }
        public virtual string Email { get; set; }

        private ISet<Phone> phones = new HashSet<Phone>();
        public virtual ISet<Phone> Phones { get { return phones; } set { this.phones = value; } }
    }
}
